Skip to content

Conversation

@hero5512
Copy link
Contributor

This PR try to close #33000. It adds support for both LevelDB and Pebble in the p2p node database, allowing users to configure the database for migration to Pebble while maintaining backward compatibility.

@hero5512 hero5512 changed the title p2p/enode: add Pebble database support with user-configurable engine p2p/enode: add Pebble database support for node database Oct 23, 2025
@rjl493456442
Copy link
Member

Honestly I don't think the complexity is worthwhile for migrating the node database.

If we decide to deprecate the LevelDB totally, we can just switch to Pebble forcibly.
It's totally fine to reset the original node database in this regard.

@hero5512
Copy link
Contributor Author

hero5512 commented Nov 8, 2025

Honestly I don't think the complexity is worthwhile for migrating the node database.

If we decide to deprecate the LevelDB totally, we can just switch to Pebble forcibly. It's totally fine to reset the original node database in this regard.

Okay. I've simplified the implementation based on your suggestion. The node database now forcibly uses pebble and resets automatically when leveldb existence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrating nodes db from leveldb to pebble

3 participants